<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../structure.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <div class="contenthead">
      <xsl:call-template name="Create_Path">
        <xsl:with-param name="without_last" select="1"/>
      </xsl:call-template>
      <div class="top">
        <span class="title">
          Структура сайта
        </span>
      </div>
    </div>
    <xsl:if test="$User/role_id = 1">
      <div class="sort">
        <form action="" method="post" id="list_form">
          <input type="hidden" value="62" name="id_cat_view" id="id_cat_view"/>
          <span> Показать: </span>
          <a href="javascript:;" onclick="$('#id_cat_view').val(1); $('#list_form').submit();">
            <xsl:if test="$Main/@id_cat_view = 1">
              <xsl:attribute name="class">on</xsl:attribute>
            </xsl:if>
            Всё
          </a>
          <a href="javascript:;" onclick="$('#id_cat_view').val(62); $('#list_form').submit();">
            <xsl:if test="$Main/@id_cat_view = 62">
              <xsl:attribute name="class">on</xsl:attribute>
            </xsl:if>
            Фронт cайт
          </a>
          <a href="javascript:;" onclick="$('#id_cat_view').val(87); $('#list_form').submit();">
            <xsl:if test="$Main/@id_cat_view = 87">
              <xsl:attribute name="class">on</xsl:attribute>
            </xsl:if>
            Администрирование
          </a>

          <!--<select name="id_cat_view" id="id_cat_view">
                <option value="1">
                  - Всё -
                </option>
                <option value="62">
                  <xsl:if test="$Main/@id_cat_view = 62">
                    <xsl:attribute name="selected">selected</xsl:attribute>
                  </xsl:if>
                  Фронт Сайт
                </option>
                <option value="87">
                  <xsl:if test="$Main/@id_cat_view = 87">
                    <xsl:attribute name="selected">selected</xsl:attribute>
                  </xsl:if>
                  Администрирование
                </option>
              </select>-->
        </form>
      </div>
    </xsl:if>
    <div class="article wide">



      <xsl:apply-templates select="Main/List" />

    </div>
  </xsl:template>

</xsl:stylesheet>